﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SimpleCrawlerApp;

namespace SimpleCrawlerForm
{
    
    public partial class Form1 : Form
    {
        Crawler crawler = new Crawler();
        string[] args;
        int num = 0;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            Crawler.Main(args);
            textBox1.Text = Crawler.str.ToString();
            textBox2.Text = Crawler.str1.ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length != 0)
            {
                args[num] = textBox1.Text;
                num++;
            }
        }
    }
}
